package com.Drools.CIPS.config;

import com.Drools.CIPS.ruler.MTRuler;
import com.Drools.CIPS.sercice.DroolsService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.annotation.Resource;

@Configuration
public class MyConfig {
    @Resource
    DroolsService droolsService;
//    @Bean
    public void ruler(){
        MTRuler.addAllRuler(droolsService.getGood());//将数据库所有规则添加
    }

}
